﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="list-news.ascx.cs" Inherits="templates_client_usercontrols_list_news" %>

<!-- Begin page content-->                        
<table style="margin-top:5px; width:504px;" cellpadding="0" cellspacing="0">
    <tr style="background-image:url(../templates/client/images/bar_title_middle.png); background-repeat:no-repeat; height:35px;">
        <td valign="top" align="left">
            <img src="../templates/client/images/arrow_title.png" alt="arrow_title" width="20px" style="margin-left:5px; margin-right:5px; margin-top:7px;" />
            <span class="title_bar_content" style="margin-top:10px;"><asp:Label ID="lbChuyenMuc" runat="server" Text="Danh sách tin tức"></asp:Label></span>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Repeater ID="rptlistnews" runat="server">
            <ItemTemplate>
                 <div class="usual" style="margin-top:10px; padding:5px; border-bottom:1px dotted #0033ff;"> 
                <p class="title_news"><%#Eval("TieuDe") %></p>
                <span class="create_date">Đăng ngày: <%#Eval("NgayDang") %> - bởi <%#Eval("TenDangNhap") %></span><br />
                <ul>
                    <li class="images_news_listnews">
                        <img src="../uploads/imagenewsupload/<%#Eval("HinhAnh") %>" style="width:147px; height:122px;" alt="hình" />        
                    </li>
                </ul>                                                    
                <span>
                    <%#Eval("TomTat") %>
                </span>
                <br />
                <a href="<%# "chitiettintuc.aspx?news="+Eval("Id")+"&category="+Eval("ChuyenMuc")%>" class="link_detail">Chi tiết >></a>
                <div style="clear:both"></div>
            </div>
            </ItemTemplate>
            </asp:Repeater> 
        </td>
    </tr>
    <tr style="background-image:url(../templates/client/images/footer-page-content2.png); background-repeat:repeat-x; height:40px">
        <td>            
            <ul class="paging" id="PhanTrang" runat="server">
                        <li>
                            <asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" 
                                        OnClick="lbtnFirst_Click" CssClass="prev">Đầu</asp:LinkButton>
                        </li>
                        <li >
                            <asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" 
                                        OnClick="lbtnPrevious_Click" CssClass="prev">Trước</asp:LinkButton>
                        </li>
                        <li >
                            <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" 
                                OnItemDataBound="dlPaging_ItemDataBound" RepeatDirection="Horizontal">
                                <ItemTemplate>                                
                                    <asp:LinkButton ID="lnkbtnPaging" runat="server" CssClass="num" 
                                        CommandArgument='<%# Eval("PageIndex") %>' CommandName="Paging" 
                                        Text='<%# Eval("PageText") %>'></asp:LinkButton>                                
                                </ItemTemplate>
                            </asp:DataList>
                        </li>                        
                        <li >
                            <asp:LinkButton ID="lbtnNext" runat="server" CausesValidation="false" 
                                        OnClick="lbtnNext_Click" CssClass="next">Tiếp</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton ID="lbtnLast" runat="server" CssClass="next" CausesValidation="false" 
                                        OnClick="lbtnLast_Click">Cuối</asp:LinkButton>
                        </li>                        
                        <asp:Label ID="lblPageInfo" runat="server" Visible="false"></asp:Label>
                    </ul>
           
        </td>
    </tr>
</table>                                                                      
<!-- Begin page content-->